Repository navigation
feat(run): run current files and individual functions - #22
Merged
Merged
Conversation
xiaoyumuxi
marked this pull request as ready for review
November 29, 2026 23:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #21
关联 Issue / Linked issue
Closes #21
PR 类型 / Type
改动说明 / What changes
背景 / Why
语言插件原有运行入口集中在构建窗口,编辑器打开当前文件时不能直接识别可执行入口;测试模块也不能从函数或方法声明旁边精确运行单个测试。这使模块依赖测试和快速回归需要手写命令或切换运行配置。
改动 / Changes
.py/.pyw文件和 pytest 函数/类方法;普通脚本直接执行python ./文件名,不要求__main__guard,单测试通过精确 pytest node ID。gutter 使用宿主选择的 Python,旧的绝对路径 override 不覆盖新 gutter 入口。editor.actions与run.start,点击前重新读取文档、版本、路径和声明;保存成功后才启动,rerun 会再次验证当前声明。/,拒绝空路径、绝对路径、盘符、反斜杠、控制字符、.和..;执行器路径和工具链来源按宿主选择解析。docs/feature-matrix.md,固定 Rust 工具链为 1.100.0,并保留 SDK revision509c2beed1b23b4d3fd1d6649a4e252982e34db2。不在本 PR 范围内 / Out of scope
类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/<id>.json;这是插件能力,已更新本仓库docs/feature-matrix.md并如实保留 macOS/其他架构 pending。.artifacts/生成的矩阵视图或临时运行目录。插件归属 / Plugin ownership
shared/i18n/,插件清单和运行消息由插件自己翻译。UI 验证 / UI evidence
scripts/run/visual.mjs生成并检查 Viva 无头截图;覆盖 Windows x64、before/after/hover、light/dark、en/zh-Hans,逻辑窗口 1440×900(输出 2880×1800)。4191c1553486247026c767ccd52b5cd9e8f38115、Cored426f018065c950754140295e857bc71b870139f。统一日志系统 / Structured logging
stderr、print、私有事件 ID 或直接日志旁路。界面文案 / i18n
node scripts/i18n/verify-app-language-localization.mjs已通过。node scripts/i18n/generate-i18n.mjs --check:宿主基线已有desktop/internal/i18n/shared.generated.go漂移;本 PR 未修改宿主来掩盖该既有问题。逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
插件契约 / Plugin contract
editor.actions/run.start。509c2beed1b23b4d3fd1d6649a4e252982e34db2;本 PR 不需要升级 Core pin 或新增 API 计划编号。发行包与资源 / Bundle and resources
verify-runtime-bundle-immutability.sh只属于 Lithe-IDEA 宿主仓;本 PR 没有宿主 bundle 改动。无用代码与重构 / Dead code and refactoring
验证 / Verification
git diff --check、node --check scripts/run/*.mjsnode scripts/test.mjsscripts/run/actions.mjs真实工具 action(证据:.artifacts/run/evidence.json)scripts/run/visual.mjsViva 无头截图未能执行的检查和原因:
.artifacts/test-stabilityHTML/JUnit、最终 package/manifest/store 门禁尚未生成,留给 CI/维护者验收。actionlint当前版本不认识仓库既有的 GitHub runner 标签(Go 的windows-11-arm、Java 的macos-26),未因工具限制修改工作流。scripts/ci/release/publish.test.mjs在基线加载时因既有 regex 只接受固定缩进而失败;git diff origin/main确认本分支未修改该测试或 release publish step。提交前确认 / Final checks
main创建;目标分支:maintarget/、dist/、.artifacts/临时产物、凭据、个人路径或未脱敏日志;截图为本仓库固定 fixture 的验收证据。